﻿@using EveKillboard
@using EveKillboard.Content
<div class="content">
    <div id="status"  style="margin: 2px 2px 2px 5px;"></div>
    <br />
    @using (Ajax.BeginForm("Add", new AjaxOptions() { HttpMethod = "Post", OnBegin = "OnBeginSavingKillmail", OnComplete = "OnCompleteSavingKillmail", LoadingElementId = "loadingDiv", UpdateTargetId = "status", LoadingElementDuration = 2000 })){
        <div>@Html.TextArea("content", new { style = "width: 400px; height: 250px;" })</div>
        <input id="killmailSubmit" type="submit" value="@Labels.submit"/>
    }
    <div id="loadingDiv" style="display: none;">
        <img class="loading" src="../../Content/themes/base/images/loading.gif" width="16px" height="11px" alt />
        <label style="vertical-align: middle">@Labels.saving_killmail</label>
    </div>
</div>
@section scripts {
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    @if(Helper.IsDebug()){
        <script src="@Url.Content("~/Content/scripts/killmailadd.js")" type="text/javascript"></script>
    }
    else{
        <script src="@Url.Content("~/Content/scripts/min/killmailadd.min.js")" type="text/javascript"></script>
    }

}
